package com.xnewtech.xplatform.swan.dataSourceManage.modular.modname.mapper;

import com.xnewtech.xplatform.swan.dataSourceManage.modular.modname.entity.TestDemo;
import com.xnewtech.xplatform.swan.dataSourceManage.modular.modname.model.params.TestDemoParam;
import com.xnewtech.xplatform.swan.dataSourceManage.modular.modname.model.result.TestDemoResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * demo表 Mapper 接口
 * </p>
 *
 * @author xnew
 * @since 2020-11-26
 */
public interface TestDemoMapper extends BaseMapper<TestDemo> {

    /**
     * 获取列表
     *
     * @author xnew
     * @Date 2020-11-26
     */
    List<TestDemoResult> customList(@Param("paramCondition") TestDemoParam paramCondition);

    /**
     * 获取map列表
     *
     * @author xnew
     * @Date 2020-11-26
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") TestDemoParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author xnew
     * @Date 2020-11-26
     */
    Page<TestDemoResult> customPageList(@Param("page") Page page, @Param("paramCondition") TestDemoParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author xnew
     * @Date 2020-11-26
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") TestDemoParam paramCondition);

    //Integer addSourceManage(TestDemo Demo)

    /**
     * @return all custom
     */
   List<TestDemo> findAllCustom();
}
